var request = require("request");

var options = {
  rejectUnauthorized: false,
  url: 'https://10.1.40.222:7508/tenant/',
  headers: {
    referer: 'https://10.1.40.222:7508/tenant/',
    // cookie: 'io=1E84qOTYs0Pn-vtwAAAB; language=zh_CN; TGC=; token=8e5ec4efbd22d5b1f39f0eb9372c3dfab8cbc21ca94dbd0f6fdef0e478f4aa0a; JSESSIONID=4A2E1DCC7674E05B5C81C78DF4D34456; skin=white',
    cookie: 'ee=ee; ghh=hgfhfhf',
    accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
    'content-type': undefined,
    'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36'
  }
}

request.get(options, function (error, response, body) {
  if (error) { console.error(error);}
  console.log(response.headers)
  console.log(body);
})

//有些tenant不能带cookie：token，不然会400